package com.iocollege.tinyframe.controller.tools;

import com.iocollege.tinyframe.common.MyBaseController;

import com.iocollege.tinyframe.common.utils.StringUtils;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * swagger 接口
 * 
 *
 */
@Controller
@RequestMapping("/tool/swagger")
public class SwaggerController
{
    @PreAuthorize("@ss.hasPermi('tool:swagger:view')")
    @GetMapping()
    public String index()
    {

        String url = "/doc.html";
        return StringUtils.format("redirect:{}", url);

    }
}
